<!--#include("header.html")-->

<div id="wikiTitleArea">
	<h2 id="wikiTitle">{$oDocument->getTitle()} - Page history</h2>
</div>

<table cellspacing="0" border="0" summary="Document history list" class="wikiTable">
    <thead>
        <tr>
			<th scope="col">{$lang->revision}/{$lang->date}</th>
            <th scope="col">{$lang->title}</th>
            <th scope="col">{$lang->author}</th> 
        </tr>
    </thead>
    <tbody>
        <!--@if(!$page || $page == 1)-->
        <tr>
			<td><strong>{$lang->current}</strong> - <span class="date">{$oDocument->getUpdate()}</span></td>
            <td class="title"><a href="{getUrl('act','',page,'','history_srl','')}">{$oDocument->getTitle()}</a></td>
            <td class="author"><a href="#" onclick="return false;" class="member_{$val->member_srl}">{$oDocument->getNickName()}</a></td>
        </tr>
        <!--@end-->
	{@ $hcount = count($histories);}
        <!--@foreach($histories as $val)-->
        <tr>
			<td><strong>v.{$hcount}</strong> - <span class="date">{zdate($val->regdate, 'Y.m.d H:i:s')}</span></td>
            <td class="title">
                <a class="wikiBodyButton" onclick="jQuery('#historyContent{$val->history_srl}').toggleClass('hide');return false;"><span><span>{$lang->cmd_view}</span></span></a>
                <a class="wikiBodyButton" onclick="location.href='{getUrl('act','dispWikiEditPage','history_srl',$val->history_srl)}';return false;"><span><span>{$lang->restore}</span></span></a>
                <a class="wikiBodyButton" onclick="getDiff('diff{$val->history_srl}',{$oDocument->document_srl},{$val->history_srl});"><span><span>{$lang->diff}</span></span></a>
            </td>
            <td class="author"><a href="#" onclick="return false;" class="member_{$val->member_srl}">{$val->nick_name}</a></td>
        </tr>
	<tr>
	    <td colspan="3" id="historyContent{$val->history_srl}" class="history_content hide">
		<div style="text-align: left;">{nl2br($val->content)}</div>
	    </td>
	</tr>
	<tr>
	    <td colspan="3" id="diff{$val->history_srl}" name="diff{$val->history_srl}" class="hide diff">
	    </td>
	</tr>
	{@ $hcount--;}
        <!--@end-->
    </tbody>
</table>


	<!--#include("document_pagination.html")-->

<!--#include("footer.html")-->
